﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Calculate
    {
        //父类
        private int a;
        private int b;
        private string opera;

        public int A { get => a; set => a = value; }
        public int B { get => b; set => b = value; }
        public string Opera { get => opera; set => opera = value; }

        public void AA(int a,int b)
        {
            this.a = a;
            this.b = b;
        }
        public virtual void figure()
        {
            int num = a + b;
            
        }
      
    }
}
